package trying.ExceptionTest;

import java.io.IOException;
import java.util.List;

public class Exceptions {

    public void ExcpIO() throws IOException {
        int a = 1/0;
    }

    public void ExcpIO2() {
        try {
            int a = 1/0;
        } catch (Exception e) {
            System.out.println("err");
        }
    }

    public void ExcpNull() throws NullPointerException {
        List list = null;
        int i = (int) list.get(0);
    }
}
